<template>
 <div class="header">
  <i class="el-icon-back back" @click="goBack"></i>
  {{ headTit }}故障模型
 </div>
</template>
<script>
import { resetRouter } from '../router/index'
export default {
  data () {
    return {
      headTit: ''
    }
  },
  methods: {
    goBack () {
      resetRouter()
      this.$router.push('/dashboard')
    }
  },
  mounted () {
    this.headTit = localStorage.getItem('type')
  }
}
</script>
<style scoped lang='scss'>
.header {
  background-color: #409eff;
  color: #fff;
  text-align: center;
  line-height: 60px;
  font-size: 23px;
  .back{
    line-height: 60px;
    float: left;
    cursor: pointer;
    margin-left: 16px;
  }
  .title{
    margin-right: 35px;
  }
  }
</style>
